home *** CD-ROM | disk | FTP | other *** search
- property pScrollDelay, pClickedStatus, pDirection
-
- on beginSprite me
- pScrollDelay = 10
- currentMember = the member of sprite me.spriteNum
- if member(currentMember).name contains "up" then
- pDirection = #up
- else
- pDirection = #down
- end if
- end
-
- on mouseDown me
- pClickedStatus = 1
- sendAllSprites(#scrollText, pDirection)
- startTimer()
- end
-
- on mouseLeave me
- pClickedStatus = 0
- end
-
- on mouseUp me
- pClickedStatus = 0
- end
-
- on mouseWithin me
- if pClickedStatus = 1 then
- if the mouseDown and (the timer > pScrollDelay) then
- sendAllSprites(#scrollText, pDirection)
- end if
- end if
- end
-